import request from '@/utils/request';

const URL = '/plugin';

const PluginAPI = {
    getPlugins (queryParams?: any) {
        return request<any> ({
            url: `${URL}/queryPluginList`,
            method: 'GET',
            params: queryParams,
        })
    },
    editPlugins (params?: any) {
        return request({
            url:  `${URL}/updatePluginInfo`,
            method: 'post',
            data: params,
        })
    }
}
export default PluginAPI;

